<?php

use yii\db\Migration;

class m181228_021614_sys_auth_item extends Migration
{
    public function up()
    {
        /* 取消外键约束 */
        $this->execute('SET foreign_key_checks = 0');
        
        /* 创建表 */
        $this->createTable('{{%sys_auth_item}}', [
            'name' => 'varchar(64) NOT NULL',
            'type' => 'int(11) NOT NULL',
            'key' => 'int(10) NOT NULL DEFAULT \'0\' COMMENT \'唯一key\'',
            'description' => 'text NULL',
            'rule_name' => 'varchar(64) NULL DEFAULT \'\' COMMENT \'规则名称\'',
            'data' => 'text NULL',
            'parent_key' => 'int(10) NULL DEFAULT \'0\' COMMENT \'父级key\'',
            'level' => 'int(5) NULL DEFAULT \'1\' COMMENT \'级别\'',
            'sort' => 'int(10) NULL DEFAULT \'0\' COMMENT \'排序\'',
            'position' => 'varchar(2000) NOT NULL DEFAULT \'\' COMMENT \'树\'',
            'created_at' => 'int(11) NULL DEFAULT \'0\'',
            'updated_at' => 'int(11) NULL DEFAULT \'0\'',
            'PRIMARY KEY (`name`)'
        ], "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统_角色路由表'");
        
        /* 索引设置 */
        $this->createIndex('rule_name','{{%sys_auth_item}}','rule_name',0);
        $this->createIndex('type','{{%sys_auth_item}}','type',0);
        
        /* 外键约束设置 */
        $this->addForeignKey('fk_sys_auth_rule_5108_00','{{%sys_auth_item}}', 'rule_name', '{{%sys_auth_rule}}', 'name', 'CASCADE', 'CASCADE' );
        
        /* 表数据 */
        $this->insert('{{%sys_auth_item}}',['name'=>'/main/clear-cache','type'=>'2','key'=>'5','description'=>'修改密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'3','position'=>'tr_0 tr_1','created_at'=>'1545709486','updated_at'=>'1545709486']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/ajax-edit','type'=>'2','key'=>'16','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'14','level'=>'5','sort'=>'1','position'=>'tr_0 tr_6 tr_7 tr_8 tr_14','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/ajax-update','type'=>'2','key'=>'18','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'14','level'=>'5','sort'=>'3','position'=>'tr_0 tr_6 tr_7 tr_8 tr_14','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/destroy','type'=>'2','key'=>'17','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'14','level'=>'5','sort'=>'2','position'=>'tr_0 tr_6 tr_7 tr_8 tr_14','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/address/index','type'=>'2','key'=>'15','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'14','level'=>'5','sort'=>'0','position'=>'tr_0 tr_6 tr_7 tr_8 tr_14','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/ajax-update','type'=>'2','key'=>'23','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'19','level'=>'4','sort'=>'3','position'=>'tr_0 tr_6 tr_7 tr_19','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/destroy','type'=>'2','key'=>'22','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'19','level'=>'4','sort'=>'2','position'=>'tr_0 tr_6 tr_7 tr_19','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/edit','type'=>'2','key'=>'21','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'19','level'=>'4','sort'=>'1','position'=>'tr_0 tr_6 tr_7 tr_19','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/auth/index','type'=>'2','key'=>'20','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'19','level'=>'4','sort'=>'0','position'=>'tr_0 tr_6 tr_7 tr_19','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/ajax-edit','type'=>'2','key'=>'11','description'=>'新增/账号密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'2','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/ajax-update','type'=>'2','key'=>'13','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'4','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/destroy','type'=>'2','key'=>'12','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'3','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/edit','type'=>'2','key'=>'10','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'1','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/member/member/index','type'=>'2','key'=>'9','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'0','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/ajax-edit','type'=>'2','key'=>'33','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'4','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/ajax-update','type'=>'2','key'=>'32','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/create','type'=>'2','key'=>'31','description'=>'设计插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/install','type'=>'2','key'=>'30','description'=>'安装插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/uninstall','type'=>'2','key'=>'29','description'=>'已安装插件','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/upgrade','type'=>'2','key'=>'34','description'=>'更新数据库','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'5','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/addons-plug/upgrade-config','type'=>'2','key'=>'35','description'=>'更新配置','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'28','level'=>'4','sort'=>'6','position'=>'tr_0 tr_24 tr_27 tr_28','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/ajax-edit','type'=>'2','key'=>'65','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'63','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_56 tr_63','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/ajax-update','type'=>'2','key'=>'67','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'63','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_56 tr_63','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/delete','type'=>'2','key'=>'66','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'63','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_56 tr_63','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-accredit/index','type'=>'2','key'=>'64','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'63','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_56 tr_63','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/ajax-update','type'=>'2','key'=>'77','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'73','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_56 tr_73','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/delete','type'=>'2','key'=>'76','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'73','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_56 tr_73','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/edit','type'=>'2','key'=>'75','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'73','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_56 tr_73','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-role/index','type'=>'2','key'=>'74','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'73','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_56 tr_73','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/ajax-edit','type'=>'2','key'=>'70','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'68','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_56 tr_68','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/ajax-update','type'=>'2','key'=>'72','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'68','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_56 tr_68','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/delete','type'=>'2','key'=>'71','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'68','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_56 tr_68','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/auth-rule/index','type'=>'2','key'=>'69','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'68','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_56 tr_68','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/ajax-edit','type'=>'2','key'=>'43','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'41','level'=>'5','sort'=>'1','position'=>'tr_0 tr_24 tr_27 tr_36 tr_41','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/ajax-update','type'=>'2','key'=>'45','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'41','level'=>'5','sort'=>'3','position'=>'tr_0 tr_24 tr_27 tr_36 tr_41','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/delete','type'=>'2','key'=>'44','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'41','level'=>'5','sort'=>'2','position'=>'tr_0 tr_24 tr_27 tr_36 tr_41','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config-cate/index','type'=>'2','key'=>'42','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'41','level'=>'5','sort'=>'0','position'=>'tr_0 tr_24 tr_27 tr_36 tr_41','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/ajax-edit','type'=>'2','key'=>'38','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'36','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_27 tr_36','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/ajax-update','type'=>'2','key'=>'40','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'36','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_27 tr_36','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/delete','type'=>'2','key'=>'39','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'36','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_27 tr_36','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/edit-all','type'=>'2','key'=>'25','description'=>'网站设置','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'24','level'=>'2','sort'=>'0','position'=>'tr_0 tr_24','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/index','type'=>'2','key'=>'37','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'36','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_27 tr_36','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/config/update-info','type'=>'2','key'=>'26','description'=>'数据保存','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'25','level'=>'3','sort'=>'0','position'=>'tr_0 tr_24 tr_25','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/backups','type'=>'2','key'=>'89','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'0','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/data-dictionary','type'=>'2','key'=>'92','description'=>'Markdown数据字典','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'3','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/delete','type'=>'2','key'=>'99','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'95','level'=>'5','sort'=>'3','position'=>'tr_0 tr_24 tr_78 tr_87 tr_95','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/export','type'=>'2','key'=>'93','description'=>'备份检测','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'4','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/export-start','type'=>'2','key'=>'94','description'=>'开始备份','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'5','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/optimize','type'=>'2','key'=>'91','description'=>'优化表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'2','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/repair','type'=>'2','key'=>'90','description'=>'修复表','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'88','level'=>'5','sort'=>'1','position'=>'tr_0 tr_24 tr_78 tr_87 tr_88','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore','type'=>'2','key'=>'96','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'95','level'=>'5','sort'=>'0','position'=>'tr_0 tr_24 tr_78 tr_87 tr_95','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore-init','type'=>'2','key'=>'98','description'=>'初始化还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'95','level'=>'5','sort'=>'2','position'=>'tr_0 tr_24 tr_78 tr_87 tr_95','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/data-base/restore-start','type'=>'2','key'=>'97','description'=>'还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'95','level'=>'5','sort'=>'1','position'=>'tr_0 tr_24 tr_78 tr_87 tr_95','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/action','type'=>'2','key'=>'81','description'=>'行为日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/action-view','type'=>'2','key'=>'82','description'=>'行为日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/error','type'=>'2','key'=>'83','description'=>'报错日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/error-view','type'=>'2','key'=>'84','description'=>'报错日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/pay','type'=>'2','key'=>'85','description'=>'支付日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'4','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/log/pay-view','type'=>'2','key'=>'86','description'=>'支付日志详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'80','level'=>'4','sort'=>'5','position'=>'tr_0 tr_24 tr_78 tr_80','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/ajax-edit','type'=>'2','key'=>'59','description'=>'新增/账号密码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'57','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_56 tr_57','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/ajax-update','type'=>'2','key'=>'61','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'57','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_56 tr_57','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/delete','type'=>'2','key'=>'60','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'57','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_56 tr_57','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/edit','type'=>'2','key'=>'62','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'57','level'=>'4','sort'=>'4','position'=>'tr_0 tr_24 tr_56 tr_57','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/index','type'=>'2','key'=>'58','description'=>'后台首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'57','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_56 tr_57','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/personal','type'=>'2','key'=>'2','description'=>'清除缓存','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'0','position'=>'tr_0 tr_1','created_at'=>'1545709486','updated_at'=>'1545709486']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/manager/up-password','type'=>'2','key'=>'3','description'=>'个人中心','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'1','position'=>'tr_0 tr_1','created_at'=>'1545709486','updated_at'=>'1545709486']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/ajax-edit','type'=>'2','key'=>'53','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'51','level'=>'5','sort'=>'1','position'=>'tr_0 tr_24 tr_27 tr_46 tr_51','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/ajax-update','type'=>'2','key'=>'55','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'51','level'=>'5','sort'=>'3','position'=>'tr_0 tr_24 tr_27 tr_46 tr_51','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/delete','type'=>'2','key'=>'54','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'51','level'=>'5','sort'=>'2','position'=>'tr_0 tr_24 tr_27 tr_46 tr_51','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu-cate/index','type'=>'2','key'=>'52','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'51','level'=>'5','sort'=>'0','position'=>'tr_0 tr_24 tr_27 tr_46 tr_51','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/ajax-edit','type'=>'2','key'=>'48','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'46','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_27 tr_46','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/ajax-update','type'=>'2','key'=>'50','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'46','level'=>'4','sort'=>'3','position'=>'tr_0 tr_24 tr_27 tr_46','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/delete','type'=>'2','key'=>'49','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'46','level'=>'4','sort'=>'2','position'=>'tr_0 tr_24 tr_27 tr_46','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/menu/index','type'=>'2','key'=>'47','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'46','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_27 tr_46','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/style/update','type'=>'2','key'=>'4','description'=>'修改主题','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'1','level'=>'2','sort'=>'2','position'=>'tr_0 tr_1','created_at'=>'1545709486','updated_at'=>'1545709486']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/sys/system/info','type'=>'2','key'=>'79','description'=>'系统信息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'78','level'=>'3','sort'=>'0','position'=>'tr_0 tr_24 tr_78','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/delete','type'=>'2','key'=>'146','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'5','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/get-all-attachment','type'=>'2','key'=>'149','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'8','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/image-create','type'=>'2','key'=>'143','description'=>'图片新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'2','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/index','type'=>'2','key'=>'141','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/news-edit','type'=>'2','key'=>'142','description'=>'图文新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/preview','type'=>'2','key'=>'147','description'=>'手机预览','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'6','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/send','type'=>'2','key'=>'148','description'=>'消息群发','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'7','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/video-create','type'=>'2','key'=>'145','description'=>'视频新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'4','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/attachment/voice-create','type'=>'2','key'=>'144','description'=>'音频新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'140','level'=>'3','sort'=>'3','position'=>'tr_0 tr_100 tr_140','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans-tags/delete','type'=>'2','key'=>'139','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'137','level'=>'4','sort'=>'1','position'=>'tr_0 tr_100 tr_129 tr_137','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans-tags/index','type'=>'2','key'=>'138','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'137','level'=>'4','sort'=>'0','position'=>'tr_0 tr_100 tr_129 tr_137','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/get-all-fans','type'=>'2','key'=>'132','description'=>'获取全部粉丝','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'1','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709860']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/index','type'=>'2','key'=>'131','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'0','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/move-tag','type'=>'2','key'=>'134','description'=>'标签分组','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'3','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/send-message','type'=>'2','key'=>'135','description'=>'发送消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'4','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/sync','type'=>'2','key'=>'133','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'2','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/fans/view','type'=>'2','key'=>'136','description'=>'详情','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'130','level'=>'4','sort'=>'5','position'=>'tr_0 tr_100 tr_129 tr_130','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/create','type'=>'2','key'=>'156','description'=>'新建','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'153','level'=>'3','sort'=>'2','position'=>'tr_0 tr_100 tr_153','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/delete','type'=>'2','key'=>'155','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'153','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_153','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/mass-record/index','type'=>'2','key'=>'154','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'153','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_153','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/ajax-update','type'=>'2','key'=>'113','description'=>'状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'3','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/delete','type'=>'2','key'=>'112','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'2','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/edit','type'=>'2','key'=>'111','description'=>'新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/index','type'=>'2','key'=>'110','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/save','type'=>'2','key'=>'115','description'=>'生效并置顶','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'5','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/menu/sync','type'=>'2','key'=>'114','description'=>'同步','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'109','level'=>'4','sort'=>'4','position'=>'tr_0 tr_100 tr_101 tr_109','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/msg-history/delete','type'=>'2','key'=>'152','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'150','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_150','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/msg-history/index','type'=>'2','key'=>'151','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'150','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_150','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode-stat/delete','type'=>'2','key'=>'125','description'=>'删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'123','level'=>'5','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_116 tr_123','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode-stat/index','type'=>'2','key'=>'124','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'123','level'=>'5','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_116 tr_123','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/add','type'=>'2','key'=>'120','description'=>'新增','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'5','sort'=>'2','position'=>'tr_0 tr_100 tr_101 tr_116 tr_117','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/delete-all','type'=>'2','key'=>'121','description'=>'删除全部','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'5','sort'=>'3','position'=>'tr_0 tr_100 tr_101 tr_116 tr_117','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/down','type'=>'2','key'=>'122','description'=>'下载','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'5','sort'=>'4','position'=>'tr_0 tr_100 tr_101 tr_116 tr_117','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/edit','type'=>'2','key'=>'119','description'=>'编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'5','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_116 tr_117','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/index','type'=>'2','key'=>'118','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'117','level'=>'5','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_116 tr_117','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/long-url','type'=>'2','key'=>'127','description'=>'首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'126','level'=>'5','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_116 tr_126','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/qrcode/qr','type'=>'2','key'=>'128','description'=>'转化链接','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'126','level'=>'5','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_116 tr_126','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/reply-default/index','type'=>'2','key'=>'108','description'=>'关注/默认回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'5','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/ajax-update','type'=>'2','key'=>'106','description'=>'关键字状态修改','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'3','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/delete','type'=>'2','key'=>'105','description'=>'关键字删除','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'2','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/edit','type'=>'2','key'=>'104','description'=>'关键字新增/编辑','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/rule/index','type'=>'2','key'=>'103','description'=>'关键字首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/setting/history-stat','type'=>'2','key'=>'161','description'=>'参数','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'6','position'=>'tr_0 tr_100','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/setting/special-message','type'=>'2','key'=>'107','description'=>'非文字自动回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'102','level'=>'4','sort'=>'4','position'=>'tr_0 tr_100 tr_101 tr_102','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/fans-follow','type'=>'2','key'=>'158','description'=>'粉丝关注统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'157','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_157','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/rule','type'=>'2','key'=>'159','description'=>'回复规则使用量','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'157','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_157','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'/wechat/stat/rule-keyword','type'=>'2','key'=>'160','description'=>'关键字命中规则','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'157','level'=>'3','sort'=>'2','position'=>'tr_0 tr_100 tr_157','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'base','type'=>'2','key'=>'1','description'=>'系统基础','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'0','position'=>'tr_0','created_at'=>'1545709486','updated_at'=>'1545709486']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index','type'=>'2','key'=>'6','description'=>'平台首页','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'1','position'=>'tr_0','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member','type'=>'2','key'=>'7','description'=>'会员管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'6','level'=>'2','sort'=>'0','position'=>'tr_0 tr_6','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-address','type'=>'2','key'=>'14','description'=>'收货地址','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'8','level'=>'4','sort'=>'5','position'=>'tr_0 tr_6 tr_7 tr_8','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-auth','type'=>'2','key'=>'19','description'=>'第三方用户','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'7','level'=>'3','sort'=>'1','position'=>'tr_0 tr_6 tr_7','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'index-member-info','type'=>'2','key'=>'8','description'=>'会员信息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'7','level'=>'3','sort'=>'0','position'=>'tr_0 tr_6 tr_7','created_at'=>'1545709487','updated_at'=>'1545709487']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys','type'=>'2','key'=>'24','description'=>'系统管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'3','position'=>'tr_0','created_at'=>'1545709488','updated_at'=>'1545712630']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-addons','type'=>'2','key'=>'28','description'=>'应用管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'3','sort'=>'0','position'=>'tr_0 tr_24 tr_27','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-accredit','type'=>'2','key'=>'63','description'=>'权限管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'56','level'=>'3','sort'=>'1','position'=>'tr_0 tr_24 tr_56','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-role','type'=>'2','key'=>'73','description'=>'角色管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'56','level'=>'3','sort'=>'3','position'=>'tr_0 tr_24 tr_56','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-auth-rule','type'=>'2','key'=>'68','description'=>'规则管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'56','level'=>'3','sort'=>'2','position'=>'tr_0 tr_24 tr_56','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-config','type'=>'2','key'=>'36','description'=>'配置管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'3','sort'=>'1','position'=>'tr_0 tr_24 tr_27','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-config-cate','type'=>'2','key'=>'41','description'=>'配置分类','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'36','level'=>'4','sort'=>'4','position'=>'tr_0 tr_24 tr_27 tr_36','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data','type'=>'2','key'=>'87','description'=>'备份还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'78','level'=>'3','sort'=>'2','position'=>'tr_0 tr_24 tr_78','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data-backups','type'=>'2','key'=>'88','description'=>'数据备份','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'87','level'=>'4','sort'=>'0','position'=>'tr_0 tr_24 tr_78 tr_87','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-data-restore','type'=>'2','key'=>'95','description'=>'数据还原','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'87','level'=>'4','sort'=>'1','position'=>'tr_0 tr_24 tr_78 tr_87','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-function','type'=>'2','key'=>'27','description'=>'系统功能','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'24','level'=>'2','sort'=>'1','position'=>'tr_0 tr_24','created_at'=>'1545709488','updated_at'=>'1545709488']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-manager','type'=>'2','key'=>'57','description'=>'后台用户','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'56','level'=>'3','sort'=>'0','position'=>'tr_0 tr_24 tr_56','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-manager-auth','type'=>'2','key'=>'56','description'=>'用户权限','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'24','level'=>'2','sort'=>'2','position'=>'tr_0 tr_24','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-menu','type'=>'2','key'=>'46','description'=>'后台菜单','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'27','level'=>'3','sort'=>'2','position'=>'tr_0 tr_24 tr_27','created_at'=>'1545709489','updated_at'=>'1545709489']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-menu-cate','type'=>'2','key'=>'51','description'=>'菜单分类','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'46','level'=>'4','sort'=>'4','position'=>'tr_0 tr_24 tr_27 tr_46','created_at'=>'1545709490','updated_at'=>'1545709490']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-tool','type'=>'2','key'=>'78','description'=>'系统工具','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'24','level'=>'2','sort'=>'3','position'=>'tr_0 tr_24','created_at'=>'1545709491','updated_at'=>'1545709491']);
        $this->insert('{{%sys_auth_item}}',['name'=>'sys-view-log','type'=>'2','key'=>'80','description'=>'查看日志','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'78','level'=>'3','sort'=>'1','position'=>'tr_0 tr_24 tr_78','created_at'=>'1545709492','updated_at'=>'1545709492']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat','type'=>'2','key'=>'100','description'=>'微信营销','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'2','position'=>'tr_0','created_at'=>'1545709493','updated_at'=>'1545712627']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-attachment','type'=>'2','key'=>'140','description'=>'素材库','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'2','position'=>'tr_0 tr_100','created_at'=>'1545709496','updated_at'=>'1545709496']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-auto-reply','type'=>'2','key'=>'102','description'=>'自动回复','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'101','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_101','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-data-statistics','type'=>'2','key'=>'157','description'=>'数据统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'5','position'=>'tr_0 tr_100','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans','type'=>'2','key'=>'129','description'=>'粉丝管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'1','position'=>'tr_0 tr_100','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans-manager','type'=>'2','key'=>'130','description'=>'粉丝管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'129','level'=>'3','sort'=>'0','position'=>'tr_0 tr_100 tr_129','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-fans-tags','type'=>'2','key'=>'137','description'=>'粉丝标签','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'129','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_129','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-mass-record','type'=>'2','key'=>'153','description'=>'消息群发','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'4','position'=>'tr_0 tr_100','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-menu','type'=>'2','key'=>'109','description'=>'自定义菜单','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'101','level'=>'3','sort'=>'1','position'=>'tr_0 tr_100 tr_101','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-msg-history','type'=>'2','key'=>'150','description'=>'历史消息','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'3','position'=>'tr_0 tr_100','created_at'=>'1545709497','updated_at'=>'1545709497']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code','type'=>'2','key'=>'116','description'=>'二维码/转化链接','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'101','level'=>'3','sort'=>'2','position'=>'tr_0 tr_100 tr_101','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-long-url','type'=>'2','key'=>'126','description'=>'长链接转二维码','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'4','sort'=>'2','position'=>'tr_0 tr_100 tr_101 tr_116','created_at'=>'1545709495','updated_at'=>'1545709495']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-manager','type'=>'2','key'=>'117','description'=>'二维码管理','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'4','sort'=>'0','position'=>'tr_0 tr_100 tr_101 tr_116','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-qr-code-statistical','type'=>'2','key'=>'123','description'=>'扫描统计','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'116','level'=>'4','sort'=>'1','position'=>'tr_0 tr_100 tr_101 tr_116','created_at'=>'1545709494','updated_at'=>'1545709494']);
        $this->insert('{{%sys_auth_item}}',['name'=>'wechat-to-enhance-function','type'=>'2','key'=>'101','description'=>'增强功能','rule_name'=>NULL,'data'=>NULL,'parent_key'=>'100','level'=>'2','sort'=>'0','position'=>'tr_0 tr_100','created_at'=>'1545709493','updated_at'=>'1545709493']);
        $this->insert('{{%sys_auth_item}}',['name'=>'测试','type'=>'1','key'=>'162','description'=>NULL,'rule_name'=>NULL,'data'=>NULL,'parent_key'=>'0','level'=>'1','sort'=>'0','position'=>'tr_0','created_at'=>'1545709563','updated_at'=>'1545743785']);
        
        /* 设置外键约束 */
        $this->execute('SET foreign_key_checks = 1;');
    }

    public function down()
    {
        $this->execute('SET foreign_key_checks = 0');
        /* 删除表 */
        $this->dropTable('{{%sys_auth_item}}');
        $this->execute('SET foreign_key_checks = 1;');
    }
}

